package com.tek.ding.faceding.presenter.login;

import com.tek.ding.faceding.base.BaseView;
import com.tek.ding.faceding.bean.AppVersion;
import com.tek.ding.faceding.bean.BaseBean;
import com.tek.ding.faceding.bean.Staff;
import com.tek.ding.faceding.bean.Store;

import java.util.List;

import io.reactivex.rxjava3.core.Observable;

public interface LoginContract {

    interface ILoginModel {
        Observable<BaseBean<Staff>> login(String storeUid, String username, String password);

        Observable<BaseBean<AppVersion>> checkNewVersionV2(String storeUid, String address, String lng, String lat);

        Observable<BaseBean<List<Store>>> getStaffStores(String storeUid, String username);

    }

    interface LoginView extends BaseView {
        void onLoginOk(BaseBean<Staff> baseBean);

        void onCheckNewVersionOk(BaseBean<AppVersion> baseBean);

        void onGetStaffStores(BaseBean<List<Store>> baseBean);
    }

}
